/**
 * 상세보기 폼 데이터 클래스 
 */
var FormData = function()
{
	var items = arguments[0];
	
	if( items != undefined )
	{
		this.openYn = this.setDefaultData(items.openYn, "");
		this.ment = this.setDefaultData(items.ment, "");
		this.bookUserId = this.setDefaultData(items.bookUserId,"");
		this.joinRoomSeq = this.setDefaultData(items.joinRoomSeq, "");
		this.applycnt = this.setDefaultData(items.applycnt, "");
		this.nickName = this.setDefaultData(items.nickName, "");
		this.reserveSeq = this.setDefaultData(items.reserveSeq,"");
		this.golfClubInfo = this.setDefaultData(items.golfClubInfo, "");
		this.reserveDate = this.setDefaultData(items.reserveDate, "");
		this.particnt = this.setDefaultData(items.particnt, "");
		this.procStatus = this.setDefaultData(items.procStatus, "");
		this.roundingInfo = this.setDefaultData(items.roundingInfo, "");
		this.joinYn = this.setDefaultData(items.joinYn, "");
		this.location = this.setDefaultData(items.location, "");
		this.holeInfo = this.setDefaultData(items.holeInfo, "");
		this.sex = this.setDefaultData(items.sex, "");
		this.bSex = this.setDefaultData(items.bSex, "");
		this.age = this.setDefaultData(items.age, "");
		this.bAge = this.setDefaultData(items.bAge, "");
		this.smokeYn = this.setDefaultData(items.smokeYn, "");
		this.bookingTime = this.setDefaultData(items.bookingTime, "");
		this.procStatusNm = this.setDefaultData(items.procStatusNm, "");
		this.bookingDay = this.setDefaultData(items.bookingDay, "");
		this.bRegionNm = this.setDefaultData(items.bRegionNm, "");
		this.aVerage = this.setDefaultData(items.aVerage, "");
		this.bAverage = this.setDefaultData(items.bAverage, "")
		this.memCount = this.setDefaultData(items.memCount, "");
		this.ageCd = this.setDefaultData(items.ageCd, "");
		this.avgCd = this.setDefaultData(items.avgCd, "");
		this.path = this.setDefaultData(items.path, "");
		this.saveFileNm = this.setDefaultData(items.saveFileNm, "");
		this.joinStatus = this.setDefaultData(items.joinStatus, "");
		this.regId = this.setDefaultData(items.regId, "");
		this.password = this.setDefaultData(items.password, "");
		this.bHandi = this.setDefaultData(items.bHandi, "");
		this.rUserName = this.setDefaultData(items.rUserName, "");
		this.regionNm = this.setDefaultData(items.regionNm, "");
	}
}

FormData.prototype.setDefaultData = function(key, value) {
	if(key == undefined) return value;
	else return key;
}


/**
 * JoinRoomView class
 */
var JoinRoomView = function() {
	thisJoinRoomView = this;


	this.TAG = " < JoinRoomView > ";
	
	/**
	 * 연동
	 */
	this.cm = null;
	
	/**
	 * 조인룸 고유 seq값 
	 */
	this.joinRoomSeq = null;
	
	/**
	 * 댓글 연동
	 */
	this.joinRoomViewReply = null;
};

JoinRoomView.prototype = {
    constructor : JoinRoomView,
    /**
     * 데이터 연동
     */
    getJoinRoomData: function()
    {
    	console.log(this.TAG + "getJoinRoomData()");
       var mJson = new MJson();

        mJson.putClient(MJson.CLIENT.USERID, document.globalObj.LOGIN_DATA.userId);
        mJson.putPub(MJson.PUB.SID, "JR001");
        mJson.putPub(MJson.PUB.SERVICENAME, "getDetailJoinRoom");
        mJson.putPub(MJson.PUB.LISTCOUNT, "10");
        mJson.putPub(MJson.PUB.CURRPAGENO, "1");
        
        mJson.putParameter(MJson.PARAMETER.JOINROOMSEQ, this.joinRoomSeq);
        thisJoinRoomView.cm.requestGet(mJson.getJsonString(), function(jsonData) {
        	
        	var items = null;
        	var formData = null;

        	if(jsonData != undefined) 
        	{
        		if( jsonData.msp.contents.items != undefined )
        		{
        			items = jsonData.msp.contents.items;
        			formData = new FormData(items);
        			thisJoinRoomView.initForm(formData);
        		}
        	}

        }, function(e) {
        	
        	alert("error :: " + JSON.stringify(e));
        	
        });
    },
	goProfile: function($userId, $nickName) {
		console.log(this.TAG + "goProfile()");

		document.globalObj.PROFILE_DATA.userId = $userId;
		document.globalObj.PROFILE_DATA.nickName = $nickName;

		$.mobile.changePage("../mypage/profile_view.html");
	},
    onPageShow : function() {
    	console.log(this.TAG + "onPageShow()");

    	thisJoinRoomView.init();

    	thisJoinRoomView.getJoinRoomData();
    	
    	this.initEvent();
    },
    /**
     * 변수 초기화
     */
    init: function() {
    	thisJoinRoomView.cm = new ConnectionManager();
    	thisJoinRoomView.joinRoomSeq = document.globalObj.joinRoomSeq;
    },
    /**
     * 데이터 연동 후 폼 데이터 초기화
     */
    initEvent: function() {
    	console.log(thisJoinRoomView.TAG + "initEvent()");
    },
    initForm: function($formData) {
    	console.log(this.TAG + "initForm()");
    	var formData = new FormData();
    	if($formData instanceof FormData)
    		formData = $formData;
    	else
    		return alert("error :: formData = "+formData);
    	
    	/**
    	 * 프로필
    	 */
    	var $layer_profile = $("section#join_room_view>section>article");
    	var util = new Util();
    	var path = util.filePath2Url(formData.path);
    	$layer_profile.find("img").attr("src", (formData.saveFileNm?(path+formData.saveFileNm):"../images/noimg_100_100.gif")); // .attr(src,xxx); // 이미지
    	$layer_profile.find("a").find("span").html(formData.nickName); // 닉네임
    	$layer_profile.find("a").on("click", function($event) {
    		thisJoinRoomView.goProfile(formData.bookUserId, formData.nickName);
    	});
    	
    	$layer_profile.find("div:eq(1)>p:eq(0)").html((function(){
    		
    		var status = formData.procStatus;
    		
    		var _class = null;
    		var rtnHtml = null;

    		if(status === "C") {
    			_class = "state_ing";
    		}
    		else if( status === "D") {
    			_class = "state_finish";
    		}
    		else if(status === "E") {
    			_class = "state_ok";
    		}
    		
    		rtnHtml = "<span class="+_class+">"+formData.procStatusNm+"</span>";
    		
    		return rtnHtml;
    	})());
    	
    	//<p><span class="ico_all ico1"><em>비밀글</em></span></p>
    	
    	var openYn = formData.openYn === "Y" ? true:false; // 공개여부
    	
    	if(openYn)
    		$layer_profile.find("div:eq(1)>p:eq(1)").empty();
    	
    	/**
    	 * 나의 참여 상태
    	 */
    	/*
    		참여구분
    		I:초대/A:참여신청/P:참여/M:거절 /S:부킹장
    		/N:미신청 stateValue;
    	 */
    	
    	var $layer_take_status  = $("section#join_room_view>section>ul>li>ul>li:even"); //.length 3
    	var $layer_take_status_button = $("section#join_room_view>section>ul>li>p"); //.length 3
    	
    	var stateValue = 0; // "", R --> 미신청
    	
    	if( formData.joinStatus === "N")  // 연동???????????
    		stateValue = 0;
    	else if(formData.joinStatus === "A")
    		stateValue = 1;
    	else if(formData.joinStatus === "P")
    		stateValue = 2;
    	
    	//stateValue = 2; // test
    	
    	$layer_take_status.removeClass("state").eq(stateValue).addClass("state");

    	var takeButtonList = $layer_take_status_button;
    	takeButtonList.hide();
    	takeButtonList.eq(stateValue).show();
    	
    	if(formData.procStatus === "D") // 조인마감일 경우 버튼 없앰
    		takeButtonList.hide();
    	
    	/**
    	 * 나의 참여상태 버튼 이벤트 등록
    	 */
    	takeButtonList.eq(stateValue).unbind("click"); // 이벤트 해제
    	takeButtonList.eq(stateValue).on("click", function($event){
    		var btnClassName = $(this).attr("class").split(" ")[1].split("_")[1]; // A, B, C
    		console.log(thisJoinRoomView.TAG + (btnClassName==="A"?"참여신청":btnClassName==="B"?"신청취소":"참여취소"));

    		if( document.globalObj.LOGIN_DATA.isLogin ) {
	    		var myTakeState = new MyTakeState(btnClassName, thisJoinRoomView.joinRoomSeq, thisJoinRoomView);
	    		myTakeState.req();
    		}
    		else
    		{
    			//alert("로그인 후 이용 가능합니다.");
    			
    			// 로그인 후 이용이 가능합니다. 로그인 하시겠습니까?(Y/N)
    			var pop = new Popup();
    			pop.confirm("골프인", "로그인 후 이용이 가능합니다. \n 로그인 하시겠습니까?(Y/N)", "취소,확인", function(arg){

    				if(arg == "2") 
    				{
    					var bookUserId = document.globalObj.joinRoomBooUserId;
    	    			document.globalObj.LOGIN_DATA.loginAfterUrl = bookUserId == document.globalObj.LOGIN_DATA.userId ? "../room/join_room_view_my.html":"../room/join_room_view.html";
    	    			//document.globalObj.LOGIN_DATA.loginBeforeUrl = "../room/join_room_view.html";
    	    			$.mobile.changePage('../member/login.html');
    				}
    				else
    				{
    					
    				}
    				
    			});
    		}
	    		

    		//POPUP
/*    		if(btnClassName === "C") 
    		{
				var pop = new Popup();
				pop.confirm("골프인", "참여를 취소 하시겠습니까?", "취소, 확인", function(index){
					if(index == 1) 
					{
			    		//var myTakeState = new MyTakeState(btnClassName, thisJoinRoomView.joinRoomSeq, thisJoinRoomView);
			    		myTakeState.req();				
					}
					else 
					{
						
					}
				});
    		}
    		else 
    		{
    			myTakeState.req();
    		}*/
    	});
    	
    	/**
    	 * 라운드 정보
    	 */
    	var $layer_round_info =$("section#join_room_view>section>ul>li:eq(1)>ul>li");
    	$layer_round_info.eq(0).html(formData.reserveDate + " ("+formData.bookingDay+") " + formData.bookingTime); // 일시
    	$layer_round_info.eq(1).html(formData.golfClubInfo);
    	$layer_round_info.eq(2).html(formData.holeInfo);
    	
    	
    	/**
    	 * 참여조건
    	 */
    	var $layer_take_terms =$("section#join_room_view>section>ul>li:eq(2)>ul>li");
    	$layer_take_terms.eq(0).find("span").find("span").removeClass().addClass(formData.sex == "남" ? "sex_m":"sex_w").html(formData.sex); // 성별
    	$layer_take_terms.eq(1).html("<h6>- 연령대</h6>"+formData.age+(formData.age==="" ? "":" 이상"));
    	$layer_take_terms.eq(2).html("<h6>- 평균타수</h6>"+(function(){
    		var avgCd = formData.avgCd;
    		var str = "대";
    		
    		var rtnValue = formData.avgCd;
    		
    		switch(avgCd)
    		{
    			case 70:
    				rtnValue = formData.avgCd+str;
    				break;
    			case 80:
    				rtnValue = formData.avgCd+str;
    				break;
    			case 90:
    				rtnValue = formData.avgCd+str;
    				break;
    			case 100:
    				rtnValue = formData.avgCd+"돌이";
    				break;
    			case 99:
    				rtnValue = "초보";
    				break;
    		}

    		return rtnValue;
    	})());
    	
    	$layer_take_terms.eq(3).html("<h6>- 흡연여부</h6>"+(formData.smokeYn == "Y" ? "흡연":"비흡연"));

    	/**
    	 * 신청자
    	 */
    	var $layer_applicant =$("section#join_room_view>section>ul>li:eq(3)").html("<h5>신청자</h5>"+formData.applycnt+"명");
    	
    	/**
    	 * 참여자
    	 */
    	var $layer_applicant =$("section#join_room_view>section>ul>li:eq(4)>mark").html(formData.particnt+"명");
    	
    	/**
    	 * 상세내용
    	 */
    	var $layer_ment =$("section#join_room_view>section>ul>li:eq(5)>div").html(formData.ment);
    	
    	/**
    	 * 댓글 등록 및 리스트
    	 */
    	this.joinRoomViewReply = new JoinRoomViewReply(formData, this);
    	this.joinRoomViewReply.init();
    }
};


/**
 * 댓글 클래스
 */
function JoinRoomViewReply($formData, $context) {
	this.TAG = " < JoinRoomViewReply > ";
	thisJoinRoomViewReply = this;
	this.formData = new FormData();
	this.formData = $formData;
	this.replyList = null;
	this.context = $context;
}


JoinRoomViewReply.prototype = {
		constructor: JoinRoomViewReply,
		getReplyData: function() {
			console.log(this.TAG + "getReplyData()");
			
			this.replyList = new Array();
			var mJson = new MJson();
		
//	        mJson.putDevice(MJson.DEVICE.OID, "0001"); // 기본설정
//	        mJson.putDevice(MJson.DEVICE.SCREEN, "100");
//	        mJson.putDevice(MJson.DEVICE.DVID, "100");
//	        mJson.putDevice(MJson.DEVICE.MODEL, "Iphone4");
//	        mJson.putDevice(MJson.DEVICE.FIRMWARE, "ios5");
			
			/**
			 * JSON 구성
			 */

			mJson.putClient(MJson.CLIENT.USERID, document.globalObj.LOGIN_DATA.userId	);
			mJson.putPub(MJson.PUB.SID, "JR001");
			mJson.putPub(MJson.PUB.SERVICENAME, "getReplyList");
			mJson.putPub(MJson.PUB.LISTCOUNT, "100");
			mJson.putPub(MJson.PUB.CURRPAGENO, "1");
			
			var cm = new ConnectionManager();
			mJson.putParameter(MJson.PARAMETER.JOINROOMSEQ, this.formData.joinRoomSeq);
			
			//console.log("조인룸 번호:"+this.formData.joinRoomSeq);
			
			/**
			 * 연동
			 */
			cm.requestGet(mJson.getJsonString(), function(jsonData){
				
				//alert(JSON.stringify(jsonData));
				
				//console.log("연동:"+JSON.stringify(jsonData));

				//var dummy = new DummyData();
				
				/*
				 * 모형 값 테스트
				 */
				//jsonData = dummy.getReplyList();

				thisJoinRoomViewReply.onShow(jsonData);
				
				
			}, function(e){
				
				alert("error :: " + JSON.stringify(e));
				
			});
			
		},
		init: function(){
			console.log(this.TAG + "init()");
			this.getReplyData();
			this.initEvent();
			
		},
		initEvent: function() {
			console.log(this.TAG + "initEvent()");
			
			/**
			 * 댓글 영역
			 */
			var $layer = $("section#join_room_view>section>div");
			/**
			 * 댓글 등록 
			 */
			var reply_area_form = $layer.find("#reply_text_area"); // 글쓰는 영역
			var reply_reg_btn_form = $layer.find("#reply_reg_btn"); // 등록 버튼

			reply_reg_btn_form.unbind("click");
			reply_reg_btn_form.on("click", function($event){
				console.log("등록 버튼 !!!");
				
				if(!document.globalObj.LOGIN_DATA.isLogin) {
	    			var popup = new Popup();
	    			popup.confirm("골프인", "로그인 후 이용이 가능합니다. 로그인 하시겠습니까?", "확인, 취소", function($index){
	    				if($index == "1") {
	    	    			document.globalObj.LOGIN_DATA.loginAfterUrl = '../room/join_room_view.html';
	    	    			$.mobile.changePage('../member/login.html');    					
	    				}
	    			});
	    			
	    			return;
				}
				
				var content = utility.trim(reply_area_form.val());
				if(content == "")
					return alert("댓글이 입력되지 않았습니다.");
				
				var js = thisJoinRoomViewReply.formData.joinStatus;
				//console.log(thisJoinRoomViewReply.TAG + js);
				
				if(js != "A" && js != "P")
					return alert("조인룸 신청/참여자만 댓글 작성이 가능합니다.");
				
				// 등록 데이터 연동
				var replyRegConnect = new ReplyRegConnect(thisJoinRoomViewReply.formData, content, thisJoinRoomViewReply);
				replyRegConnect.init();
			});
		
		},
		/**
		 * 리스트 개별 지우기
		 */
		onRemoveItem: function($id) {
			console.log(this.TAG + "onRemoveItem=" + $id);
			var id = $id;
			
			var joinRoomSeq = this.replyList[id].joinRoomSeq;
			var replySeq = this.replyList[id].replySeq;
			
			var mJson = new MJson();
			/**
			 * JSON 구성
			 */
			mJson.putClient(MJson.CLIENT.USERID, document.globalObj.LOGIN_DATA.userId);
			mJson.putPub(MJson.PUB.SID, "JR001");
			mJson.putPub(MJson.PUB.SERVICENAME, "deleteReply");
			mJson.putPub(MJson.PUB.LISTCOUNT, "10");
			mJson.putPub(MJson.PUB.CURRPAGENO, "1");
			
			mJson.putParameter(MJson.PARAMETER.JOINROOMSEQ, joinRoomSeq);
			mJson.putParameter(MJson.PARAMETER.REPLYSEQ, replySeq);
			
			
			var cm = new ConnectionManager();
			cm.requestGet(mJson.getJsonString(), function(jsonData){
				
				thisJoinRoomViewReply.getReplyData();
				
			}, function(e){
				
				alert("error:"+JSON.stringify(e));
				
			})
		},
		/**
		 * 댓글 리스트
		 */
		onShow: function(jsonData) {
			console.log(this.TAG + "onShow()");
			
			this.replyList = null;
			this.replyList = new Array(); // 초기화
			
			var $layer_listview = $("#reply_listview");
			$layer_listview.empty();
			
			if(jsonData.msp.contents != undefined) 
			{
				if(jsonData.msp.contents.items != undefined ) {
					
					if(jsonData.msp.contents.items.length == undefined ) {
						this.replyList.push(jsonData.msp.contents.items);
					}
					else
					{
						for(var i=0; i<jsonData.msp.contents.items.length; i++) {
							this.replyList.push(jsonData.msp.contents.items[i]);
						}
					}
					
					var list = this.replyList;
					var util = new Util();
					
					for(var i=0; i<list.length; i++)
					{
						var data = list[i];
						var sb = new StringBuffer();
						sb.append("<li>"); //thisJoinRoomViewReply.context.goProfile("+data.regId+","+ data.nickName+")" +"
						sb.append("<a data-transition=slide><img src="+ (data.saveFileNm?(util.filePath2Url(data.path)+data.saveFileNm):"../images/noimg_100_100.gif")+" alt=''/></a>");
						sb.append("<h3 id="+i+">"+(data.nickName === undefined ? "익명":data.nickName)+"</h3>");
						sb.append("<p>"+data.content+"</p>");
						sb.append("<time>"+util.fDateYmd(data.regDate)+ " " + util.fTime(data.regTime,":") + "</time>");
						
						if(document.globalObj.LOGIN_DATA.isLogin)
							sb.append("<button data-role='none' onclick=thisJoinRoomViewReply.onRemoveItem($(this).attr('id')) id=" + i + "><span class='ico_navi navi26'></span></button>");

						sb.append("</li>");
						
						$layer_listview.append(sb.toString());
						
					}
					
					$layer_listview.listview("refresh");
					
					/*
					 * 프로필 보기.
					 */
					$layer_listview.find("h3").unbind("click");
					$layer_listview.find("h3").bind("click", function($event){
						console.log($(this).attr("id"));
						var id = $(this).attr("id");
						var data = list[id];
						thisJoinRoomViewReply.context.goProfile(data.regId, data.nickName);
					});
		
				}
			}
			
			var $reply_replyArea = $("#reply_area");
			$reply_replyArea.find("mark").html("("+this.replyList.length+")");
			
			//this.initEvent();
		}
}


/**
 * 댓글 등록 연동 클래스
 * @param joinRoomSeq, 댓글
 */
function ReplyRegConnect($formData, $content, $context) 
{
	thisReplyRegConnect = this;
	this.TAG = " < ReplyRegConnect > ";
	
	this.formData = new FormData();
	this.formData = $formData;
	this.content = $content;
	this.context = $context; // joinRoomViewReply
}

ReplyRegConnect.prototype = {

		constructor: ReplyRegConnect,
		
		init: function(){
			console.log(this.TAG + "init()");
			var mJson = new MJson();
			
			mJson.putPub(MJson.PUB.SID, "JR001");
			mJson.putPub(MJson.PUB.SERVICENAME, "registReply");
			mJson.putPub(MJson.PUB.LISTCOUNT, "10");
			mJson.putPub(MJson.PUB.CURRPAGENO, "1");
			
			mJson.putClient(MJson.CLIENT.USERID, document.globalObj.LOGIN_DATA.userId);
			mJson.putParameter(MJson.PARAMETER.JOINROOMSEQ, this.formData.joinRoomSeq);
			mJson.putParameter(MJson.PARAMETER.CONTENT, this.content);
			//mJson.putParameter(MJson.PARAMETER.REGID, document.globalObj.LOGIN_DATA.userId);
			
			//mJson.putPub(MJson.PARAMETER.REGID, "khs01"); // 등록자 아이디
			//mJson.putPub(MJson.PARAMETER.MODID, "khs01"); // 수정자 아이디
			//mJson.putPub(MJson.PARAMETER.REPLYSEQ, "1000"); // 댓글 시퀀스??
			
			var cm = new ConnectionManager();
			cm.requestGet(mJson.getJsonString(), function(jsonData) {
				var $layer = $("section#join_room_view>section>div");
				var reply_area_form = $layer.find("#reply_text_area"); // 글쓰는 영역
				reply_area_form.val("");
				
				/**
				 * 댓글 등록 및 리스트
				 */
				thisReplyRegConnect.context.getReplyData();
				
			}, function(e){
				alert("error :: " + JSON.stringify(e));
			});
		}
};

/**
 * 나의 참여상태 버튼 연동 클래스
 */
function MyTakeState($class, $joinRoomSeq, $context) {
	thisMyTakeState = this;
	this.TAG = " < MyTakeState > ";
	this.btnClassName = $class;
	this.joinRoomSeq = $joinRoomSeq;
	this.context = $context;
}

MyTakeState.prototype = {
		req: function() {
			//A:참여신청, B:신청취소, C:참여취소			
			var serviceName = this.btnClassName === "A" ? "registMember" : this.btnClassName === "B" ? "ApplyCancel" : "UserPartyCancel";

			
			var mJson = new MJson();
			
			mJson.putClient(MJson.CLIENT.USERID, document.globalObj.LOGIN_DATA.userId);
			
			mJson.putPub(MJson.PUB.SID, "JR001");
			mJson.putPub(MJson.PUB.SERVICENAME, serviceName);
			mJson.putPub(MJson.PUB.LISTCOUNT, "");
			mJson.putPub(MJson.PUB.CURRPAGENO, "");
			
			mJson.putParameter(MJson.PARAMETER.JOINROOMSEQ, this.joinRoomSeq);
			
			var cm = new ConnectionManager();
			
			cm.requestGet(mJson.getJsonString(), function(jsonData){
				
				console.log(thisMyTakeState.TAG + "신청결과:"+JSON.stringify(jsonData));
				
				if(jsonData.msp.result.code === "00000"){
					//alert("성공");
					//this.context.getJoinRoomData();
					thisMyTakeState.context.getJoinRoomData();
				}
				
			}, function(e)
			{
				alert("error:"+JSON.stringify(e));
			});
		}
}

/**
 * Dummy Json Data
 */
function DummyData() {
	
}

DummyData.prototype = {
		getReplyList: function() {
			
			var jsonData = {
					  "msp": {
						    "@version": "3.00",
						    "params": {
						      "pub": {
						        "sid": "JR001",
						        "servicename": "getReplyList",
						        "listcount": 3,
						        "currpageno": 1
						      },
						      "parameter": {
						        "@name": "joinRoomSeq",
						        "$": "1009"
						      }
						    },
						    "contents": {
						      "@class": "contents",
						      "@totalcount": "1",
						      "items": [{
						        "regId": "golfin3",
						        "regDate": 20120720,
						        "regTime": "18:20",
						        "content": "안녕하세요. ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ",
						        "joinRoomSeq": 1009,
						        "replySeq": 164,
						        "replyAuth": 1,
						        "nickName" : "헐"
						      },
						      {
							        "regId": "golfin3",
							        "regDate": 20120720,
							        "regTime": "13:20",
							        "content": "하잌ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ",
							        "joinRoomSeq": 1009,
							        "replySeq": 264,
							        "replyAuth": 1,
							        "nickName" : "ㅎㅎㅎㅎㅎㅎㅎㅎ"
							  },
							  {
							        "regId": "golfin3",
							        "regDate": 20120720,
							        "regTime": "19:50",
							        "content": "낄낄ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ",
							        "joinRoomSeq": 1001,
							        "replySeq": 364,
							        "replyAuth": 1,
							        "nickName" : "ㅋㅋㅋㅋㅋㅋㅋ"
							  }],
						      "serviceResult": "00000"
						    },
						    "result": {
						      "code": "00000",
						      "msg": "성공"
						    }
						  }
						};
			
			return jsonData;
		}
}
